home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98c.txt
/
000136_icon-group-sender _Thu Dec 17 11:19:34 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
968b
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id LAA14165
for icon-group-addresses; Thu, 17 Dec 1998 11:17:54 -0700 (MST)
Message-Id: <199812171817.LAA14165@baskerville.CS.Arizona.EDU>
Date: Wed, 16 Dec 1998 18:21:05 -0700
From: Ralph Griswold <ralph>
To: icon-group
Subject: Small Icon programming problem
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Here's a small Icon programming problem for you to tackle:
Write a procedure digsort(i) that returns the integer that
results from sorting the digits of i, preserving sign. For
example, digsort(201) should return 12 and digsort(-1042)
should return -124. You may assume i is an integer.
You could aim for brevity, speed, and/or clarity.
Send solutions and comments to icon-group. The most interesting
solutions will appear in a future issue of the Icon Analyst and
sent to icon-group as a package.